package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="/mq")
public class Rabbitmqcontroller extends BaseController {

    @Autowired
    private Producer producer;

    @RequestMapping(value = "/get")
    public String index(){
        producer.send();
        return "success";
    }
}
